<?php $count = 1; ?>
@foreach($entities as $entity)
    <?php
    $array = $entity->getProperties();
    $keys = array_keys($array);
    ?>
    <table class="table table-striped">
        <tr>
            @foreach($keys as $key)
                <th>{{$key}}</th>
            @endforeach
            <th></th>
            <th></th>
        </tr>
        <tr class="row-{{$count}}">
            @foreach($keys as $key)
                @if($key == 'Timestamp')
                    <td>{!! date_format($array[$key]->getValue(), 'Y-m-d H:i') !!}</td>
                @elseif($key == 'PartitionKey')
                    <td class="partition-key">{!! $array[$key]->getValue() !!}</td>
                @elseif($key == 'RowKey')
                    <td class="row-key"><div contenteditable> {!! $array[$key]->getValue() !!}</div></td>
                @else
                    <td ondblclick="editColumn(this)">{!! $array[$key]->getValue() !!}</td>
                @endif
            @endforeach
            <td><a href="#" onclick="editEntity({{$count}})"><i class="fa fa-edit"></i></a></td>
                <td><a href="#" onclick="deleteEntity({{$count++}})"><i class="fa fa-remove"></i></a></td>
        </tr>
    </table>

@endforeach